import cv2

img = cv2.imread("D:\\xiuzhi.jpg")
r1 = cv2.blur(img, (5, 5))
r2 = cv2.blur(img, (30, 30))
cv2.namedWindow("original", cv2.WINDOW_NORMAL)
cv2.imshow("original", img)
cv2.namedWindow("result", cv2.WINDOW_NOR
cv2.imshow("result", r1)
cv2.imshow("result", r2)
cv2.waitKey()
cv2.destroyAllWindows()